home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
3_4.lha
/
3_4
/
3_4p.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
637b
|
17 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h> /* DELETE */
nt x[3] = { 2, 1, 0 }; int i = 0; /* DELETE */
ain() { /* DELETE */
define swap1(a,b) { int t = (a); (a) = (b); (b) = t; }
define swap2(a,b) { int t = (b); (b) = (a); (a) = t; }
wap1(x[i], i);
rintf("i=%d, x[0]=%d, x[1]=%d, x[2]=%d\n", i, x[0], x[1], x[2]); /* DELETE */
[0]=0; x[1]=1; i=0; /* DELETE */
include "3_4r.c" /* DELETE */
rintf("i=%d, x[0]=%d, x[1]=%d, x[2]=%d\n", i, x[0], x[1], x[2]); /* DELETE */
return 0; } /* DELETE */